<?php $route    = $sf_user->getCurrentRouteName() ?>

<?php $function = $route != 'order_editar' ? sprintf('submitForm(\'%s\')', $sf_params->get('uClass')) : 'submitOrder("", "")' ?>

<div class="buttons">
  <input class="button" type="submit" value="<?php echo $object->isNew() ? 'Guardar' : 'Actualizar' ?>" name="commit" id="Save" onclick="javascript: <?php echo $function ?>" >
  <?php //Deb::print_r(get_entrance_route()) ?>
  <?php if(!get_entrance_route() == '@usuario_lista'): ?>
  o
  <?php echo link_to('Cancel', get_entrance_route()) ?>
  <?php endif; ?>
</div>